package com.neusoft.databus.policy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.databus.policy.model.Expression;
import com.neusoft.databus.policy.repository.ExpressionRepository;
import com.neusoft.databus.policy.service.ExpressionService;

@Service
public class ExpressionServiceImpl implements ExpressionService {
    @Autowired
    private ExpressionRepository expressionRepository;

    @Override
    public Expression create(Expression model) {
        return this.expressionRepository.save(model);
    }

    @Override
    public void delete(Expression model) {
        this.expressionRepository.delete(model);
    }

    @Override
    public Expression update(Expression model) {
        return this.expressionRepository.save(model);
    }

}
